/**
 * 商户维护
 * @constructor
 */
function SysConfig() {
}

SysConfig.init = function () {

}
//操作相关方法****************************
function log() {
    var postdata={
        userEmail: $("#text_email").val(),
        userPhone: $("#text_phone").val(),
        userPassword: $("#text_oldpwd").val(),
        userNewPassword: $("#text_newpwd").val(),
    };
    $.ajax({
        url:"/sysConfig/update",
        type:"post",
        data:JSON.stringify(postdata),
        contentType:"application/json",
        dataType:"json",
        success:function(data){
            if (data.code === "200") {
                swal("修改成功!", "请继续操作", "success");
            } else if(data.code==="500"){
                swal("修改失败!", "原密码错误，请重试", "error");
            }else{
                swal("修改失败!", "请重试", "error");
            }
        }
    })
}
